
// Object.create和new Object和{}的区别
// 自己实现一个new
function _new(fn, ...args) {
  const obj = Object.create(fn.prototype)
  const ret = fn.apply(obj, args)
  return ret instanceof Object ? ret : obj;
}